package com.evl.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 票种表
 * </p>
 *
 * @author dangsheng
 * @since 2017-06-22
 */
@TableName("ticket_kind")
public class TicketKind extends Model<TicketKind> {

    private static final long serialVersionUID = 1L;

    /**
     * 票种id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 票种编码：1儿童票，2成人票，3老人票
     */
	@TableField("kind_code")
	private Integer kindCode;
    /**
     * 票种名称
     */
	private String name;
    /**
     * 票种状态：0无效，1有效
     */
	private Integer flag;
    /**
     * 票种失效日期
     */
	@TableField("expiry_date")
	private Date expiryDate;
    /**
     * 票种生效日期
     */
	@TableField("effective_date")
	private Date effectiveDate;
    /**
     * 票种折扣
     */
	private Double percent;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getKindCode() {
		return kindCode;
	}

	public void setKindCode(Integer kindCode) {
		this.kindCode = kindCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Date getExpiryDate() {
		return expiryDate;
	}

	public void setExpiryDate(Date expiryDate) {
		this.expiryDate = expiryDate;
	}

	public Date getEffectiveDate() {
		return effectiveDate;
	}

	public void setEffectiveDate(Date effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	public Double getPercent() {
		return percent;
	}

	public void setPercent(Double percent) {
		this.percent = percent;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
